package com.chen.service;

import com.chen.dto.LogInAndRegisterDto;
import com.chen.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.vo.Result;

import java.math.BigDecimal;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author cws
 * @since 2024-11-24
 */
public interface UserService extends IService<User> {

    Result login(LogInAndRegisterDto logInAndRegisterDto);

    Result register(LogInAndRegisterDto logInAndRegisterDto);

    Result getUserInfo(String token);


    boolean updateAmout(Long userId, BigDecimal bigDecimal);


    boolean updateIntegration(Long userId, Integer integration);


}
